<?php
// $ft_list=$data['noveltype'];
// $hits_list=$data['novelhittimes'];
// $f_list=$data['novelinfor'];
// $novel_list=$data['novellist'];
$c_list=$data1;
?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="icon" href="../../favicon.ico">

  <title>选课系统</title>

  <!-- Bootstrap core CSS -->
  <link href="assets/css/bootstrap.min.css" rel="stylesheet">

  <!-- Custom styles for this template -->
  <link href="assets/css/offcanvas.css" rel="stylesheet">
  <link href="assets/css/style.css" rel="stylesheet">
  <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
  <!--[if lt IE 9]>
  <script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  <script src="assets/js/ie-emulation-modes-warning.js"></script>

  <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body>
  <nav class="navbar navbar-fixed-top navbar-inverse">
    <div class="container-fluid">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>

      </div>

      <!-- Collect the nav links, forms, and other content for toggling -->



  <div class="container">

    <div class="row row-offcanvas row-offcanvas-right">

      <div class="col-xs-12 col-sm-9">


        <div class="row text-center">

          <div class="col-xs-12 col-lg-12 mlist">

            <table class="table table-hover">
            <tr>
              <th>课程名字</th>
              <th>任课教师</th>
            </tr>

           <?php

               foreach($data as $row){
                 echo '<tr>';
                 echo '<td>'.$row['coursename'].'</td>';
                 echo '<td>'.$row['teacher'].'</td>';
                 echo '<td><a href="index.php?c=index&m=delchoose&id='.$row['id'].' ">退选</a>';


                 }

                 echo '</tr>';
             echo '</table>';

            ?>


          </div>

<!-- </li>
<li class="col-xs-6 col-lg-3">
<img src="images/a dogs story.jpg" class="responsive img-thumbnail"/>
<p><a href="show.php">忠犬八公的故事</a></p>
</li>
<li class="col-xs-6 col-lg-3">
<img src="images/happiness.jpeg" class="responsive img-thumbnail"/>
<p><a href="show.php">当幸福来敲门</a></p>
</li>
</ul> -->

</div>
<!--/.col-xs-6.col-lg-4-->

</div>
<!--/row-->
</div>
<!--/.col-xs-12.col-sm-9-->

  <!-- Bootstrap core JavaScript
  ================================================== -->
  <!-- Placed at the end of the document so the pages load faster -->
  <script src="assets/js/jquery.min.js"></script>
  <script src="assets/js/bootstrap.min.js"></script>

  <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  <script src="assets/js/ie10-viewport-bug-workaround.js"></script>

  <script src="offcanvas.js"></script>
</body>
</html>
